﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Patterns.UnitOfWorkPattern
{
    public interface IMultiContextUnitOfWork : IDisposable
    {
        void SaveChanges();

        void Rollback();

        void RegisterContext(IDomainContextUoWAccessor context);

        IDomainContext GetContext(Type contextType);
    }
}
